package org.hyacinth.user.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {
    @Bean("hello")
    public Queue queue() {
        return QueueBuilder.durable("hello").build();
    }

//    @Bean("userQueue")
//    public Queue userQueue() {
//        return QueueBuilder.durable(Constants.USER_QUEUE_NAME).build();
//    }
//
//    @Bean("userExchange")
//    public FanoutExchange userExchange() {
//        return ExchangeBuilder.fanoutExchange(Constants.USER_EXCHANGE_NAME).durable(true).build();
//    }
//
//    @Bean("userBinding")
//    public Binding userBinding(@Qualifier("userQueue") Queue userQueue, @Qualifier("userExchange") FanoutExchange userExchange) {
//        return BindingBuilder.bind(userQueue).to(userExchange);
//    }
}
